<!-- 编辑问卷 -->
<template>
  <div class="content">
    <reqtype-section ref="reqtypeDialog" @chooseItem="chooseItem" :changeItemData="changeItemData" class="reqtypeDialog"></reqtype-section>
    <reqedit-section ref="reqeditDialog" @changeItem="changeItem" :choosItemData="choosItemData" class="reqeditDialog"></reqedit-section>
  </div>
</template>

<script>
import reqtypeSection from './components/reqTypeSection'
import reqeditSection from './components/reqEditSection'
export default {
  components: { reqtypeSection , reqeditSection },
  data() {
    return {
      choosItemData:{},
      changeItemData:{}
    }
  },
  created() {},
  mounted() {},
  methods: {
      chooseItem(val){
        this.choosItemData = JSON.parse(JSON.stringify(val))
      },
      changeItem(val){
        this.changeItemData = JSON.parse(JSON.stringify(val))
      }
  }
}
</script>
<style lang="scss" scoped>
.content{
    height: 100%;
    background-color: #f7f8fa;
    display: flex;
    flex-direction: row;
    .reqtypeDialog{
        width: 230px;
    }
    .reqeditDialog{
        width: 700px;
    }
}
</style>